<script setup lang="ts">
import { ref } from 'vue'
import { formOption, btnOption } from './data'
import { TFormData } from '../../types/formArea'

let formData = ref({
  name: '',
  age: '',
  member:''
})

const changeFormData = (val: TFormData) => {
  formData = JSON.parse(JSON.stringify(val))
}

</script>
<template>
  <div class="">
    <form-area 
      :formOption="formOption" 
      :formData="formData" 
      :btnOption="btnOption"
      @onSubmit="changeFormData" />
  </div>
</template>
<style lang="scss" scoped>
    
</style>